Rick Strahl's Weblog  

Wind, waves, code and everything in between...
.NET • C# • Markdown • WPF • All Things Web
Contact   •   Articles   •   Products   •   Support   •   Advertise
Sponsored by:
Markdown Monster - The Markdown Editor for Windows

WebLog Posts in Category Web Api


Categories
ASP.NET (324) .NET (175) Windows (76) JavaScript (72) jQuery (61) Visual Studio (54) IIS (48) Csharp (47) WPF (47) HTML (46) AJAX (45) ASP.NET (33) Localization (32) LINQ (30) WCF (28) MVC (26) Personal (25) Security (23) HTML5 (23) FoxPro (22) CSS (21) Angular (20) C# (19) Web Services (19) Web Api (16) COM (16) ADO.NET (15) Vista (11) XML (11) Sql Server (10) HTTP (10) IIS7 (10) Markdown (9) WebView (9) Microsoft AJAX (8) IIS7 (7) West Wind Ajax Toolkit (7) Web Connection (7) Entity Framework (6) Html Help Builder (5) Mobile (5) Markdown Monster (5) Live Writer (5) Internet Explorer (5) C++ (5) ASPNET5 (5) OWIN (5) Web (5) Software Development (5) SignalR (5) NuGet (5) WinForms (5) Westwind.Globalization (4) Silverlight (4) Source Control (4) Cordova (4) DataBinding (3) Conferences (3) ASP.NET Core (3) Help Builder (3) ISV (3) LetsEncrypt (3) Office (3) Opinion (3) Networking (3) Razor (3) Web Browser Control (3) WebLog (3) Web Development (2) Visual Studio Code (2) Tools (2) RegEx (2) RSS (2) Speaking (2) Linux (2) Bugs (2) Help (2) Installation (2) Dotnet (2) ASP.NET vNext (2) .NET Standard (2) Addins (2) Authentication (2) Deployment (2) Desktop (1) Credit Card Processing (1) Cross-Platform (1) CSharp Dotnet (1) Blazor (1) Blogging (1) Control Development (1) Chocolatey (1) .NET ASP.NET Windows (1) Security (1) Visual Studio (1) ADO.NET (1) ASP.NET Markdown (1) AI (1) Angular JavaScript (1) Dynamic Types (1) Email (1) FireFox (1) Flexbox (1) Git (1) Graphics (1) Hardware (1) JSON (1) IOS (1) Musings (1) Migration (1) Testing (1) Threading (1) SEO (1) rxJs (1) RazorPages (1) Travel (1) Typescript (1) VS Code (1) WebBrowser (1) WebDeploy (1) Web Deployment Projects (1) Web Design (1) Web Assembly (1) WebSockets (1) WebSurge (1) Windows-Terminal (1) Windsurfing (1) WFH (1) WPF Windows (1) WSL (1) wwHoverPanel (1)

Accepting Raw Request Body Content with ASP.NET Web API



One ASP.NET Web API related question that frequently comes up frequently is how to capture the raw request content to a simple parameter on a controller method. Turns out that's not as easy as it should be. In this post I discuss how to natively capture the raw request content and then create a [NakedBody] attribute that makes it easy capture the raw content in a string or byte[] parameter.

A WebAPI Basic Authentication MessageHandler



In my last post I showed how to create a basic authentication filter for custom authentication within your applications. This time I repeat the excercise with a MessageHandler to demonstrate the differences between the two approaches.

A WebAPI Basic Authentication Authorization Filter



Recently I needed to implement user based security in a Web API application that's easily accessible from a variety of clients. The customer asked specifically for Basic Auth support and so needed to implement custom Basic Auth support. In this post I describe a simple AuthorizationFilter based implementation of Basic Authentication for Web API.

WebAPI: Getting Headers, QueryString and Cookie Values



Finally got tired to trying to remember how to get at the Headers, Cookies and QueryString 'collections' in Web API, since there's zero consistency and messy nested collections to deal with. Here's are a set of extension methods that make it easier.

Passing multiple simple POST Values to ASP.NET Web API



One feature conspicuously missing from ASP.NET Web API is the inability to map multiple urlencoded POST values to Web API method parameters. In this post I show a custom HttpParameterBinding that provides this highly useful functionality for your Web APIs.

ASP.NET Frameworks and Raw Throughput Performance



I got curious the other day: How do the various ASP.NET framework compare in raw throughput performance? With so many development choices on the ASP.NET stack available today it's interesting to take an informal look at how raw throughput performance compares.

Using JSON.NET for dynamic JSON parsing



Parsing JSON dynamically rather than statically serializing into objects is becoming much more common with today's applications consuming many services of varying complexity. Sometimes you don't need to map an entire API, but only need to parse a few items out of a larger JSON response. Using JSON.NET and JObject,JArray,JValue makes it very easy to dynamically parse and read JSON data at runtime and manipulate it in a variety of different ways. Here's how.

An Introduction to ASP.NET Web API



This article is a hands on tour of ASP.NET Web Api. It covers a fair variety of functionality and goes beyond the most basic introductions by digging into some of the mundane details you're likely to run when first starting out with Web API.

Mapping UrlEncoded POST Values in ASP.NET Web API



Surprsingly Web API does not support POST value mapping to multiple simple parameters on a Web API endpoint. While you can map POST values with model binding or the FormDataCollection native parameter mapping in Web API is a missing feature. Here's what you can and can't do with POST values in Web API.

Where does ASP.NET Web API Fit?



With the pending release of ASP.NET Web API we're finally getting a good HTTP Service solution 'in the box ' in ASP.NET. Web API provides many needed and cool features, but it's not always clear whether you should use Web API or some other technology like MVC to handle HTTP service requests. In this post I discuss what Web API is and a few options of where it fits and potentially doesn't fit.

Passing multiple POST parameters to Web API Controller Methods



Web API allows for RPC style method access, but there are differences from older Microsoft AJAX APIs when it comes to passing multiple parameters. Here's how Web API handles parameters and how you can optionally manage multiple parameters to API Controller methods.

Creating a JSONP Formatter for ASP.NET Web API



Web API doesn't include native JSONP support, but it's pretty easy to create a custom formatter that handles this task. Here's how to create a JsonpFormatter and hook it up as well as a short review of how JSONP works.

ASP.NET Web API and Simple Value Parameters from POSTed data



There are a few odd behaviors with Web API and its handling of simple parameters to Controller methods. While complex values serialize just fine, simple values like strings and dates and form variables require special attention.

Dynamic JSON Parsing in .NET with JsonValue



The JsonValue/JsonObject/JsonArray classes in the System.Json are new for the full .NET framework and recently introduced with the various betas of ASP.NET (and previously WCF) Web API. JsonValue fills the need for dynamically parsing and serializing of JSON at runtime.

Using an alternate JSON Serializer in ASP.NET Web API



The default serializer in ASP.NET Web API (at least in Beta) is the DataContractJsonSerializer with all of its warts and inability to not serializer non-typed objects. In this post I'll talk about the issues and how to plug-in alternate JSON parsers to handle more complete JSON serialization in Web API.

Removing the XML Formatter from ASP.NET Web API Applications



When viewing ASP.NET Web API output in browsers the content is usually displayed as XML which is not my preferred choice. Even though JSON is Web APIs default format XML continues to be displayed. Here's some discussion on why this happens and how you can work around it.
West Wind  © Rick Strahl, West Wind Technologies, 2005 - 2024